<!DOCTYPE html>
<html>
<head>
    <title>后台</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="../static/css/base.css">
    <link rel="stylesheet" href="../static/css/hw-admin.css">
</head>
<body>
    
    <div class="hh-iframe">

        <div class="hh-header">
            <div class="page-title">企业管理列表</div>
            <div class="operate-btns">
                <div class="operate-item">
                    <button class="hh-btn hh-default-btn operate-btn">停用</button>
                </div>
                <div class="operate-item">
                    <button class="hh-btn operate-btn">启用</button>
                </div>
                <div class="operate-item">
                    <a class="hh-btn" href="<?=base_url().'GardenAdmin/Enterprise/add_enterprise'?>">新增</a>
                </div>
            </div>
        </div>

        <div class="hh-filter">
            <form action="">
                <div class="default-filter">
                    <label class="hh-search">
                        <input class="hh-input" type="text" placeholder="">
                    </label>
                    <div class="filter-switch" data-status="<?php echo empty($_GET) ? 0 : 1 ?>">更多筛选条件<i class="hh-iconfont">&#xe619;</i></div>
                </div>
                <div class="filter-detail">
                    <div class="filter-item">
                        <div class="hh-input-label">
                            <div class="name">按行业</div>
                            <div class="form-control">
                                <label class="hh-select">
                                    <input class="hh-input small-size" name="trade" type="text" value="<?if(isset($condition['trade'])){echo $condition['trade'];} else {echo 0;}?>" readonly unselectable="on">
                                    <div class="select-options">
                                        <div class="option <?if(isset($condition['trade']) && $condition['trade']==0){echo 'selected';}?>" data-value="0"><span>无</span></div>
                                        <div class="option <?if(isset($condition['trade']) && $condition['trade']==1){echo 'selected';}?>" data-value="1"><span>教育培训</span></div>
                                        <div class="option <?if(isset($condition['trade']) && $condition['trade']==2){echo 'selected';}?>" data-value="2"><span>金融投资</span></div>
                                        <div class="option <?if(isset($condition['trade']) && $condition['trade']==3){echo 'selected';}?>" data-value="3"><span>IT服务</span></div>
                                        <div class="option <?if(isset($condition['trade']) && $condition['trade']==4){echo 'selected';}?>" data-value="4"><span>软件</span></div>
                                        <div class="option <?if(isset($condition['trade']) && $condition['trade']==5){echo 'selected';}?>" data-value="5"><span>医疗</span></div>
                                    </div>
                                </label>
                            </div>
                        </div>
                        <div class="hh-input-label">
                            <div class="name">按企业规模</div>
                            <div class="form-control">
                                <label class="hh-select">
                                    <input class="hh-input small-size" name="team_size" type="text" value="<?if(isset($condition['team_size'])){echo $condition['team_size'];} else {echo 0;}?>" readonly unselectable="on">
                                    <div class="select-options">
                                        <div class="option <?if(isset($condition['team_size']) && $condition['team_size']==0){echo 'selected';}?>" data-value="0"><span>无</span></div>
                                        <div class="option <?if(isset($condition['team_size']) && $condition['team_size']==1){echo 'selected';}?>" data-value="1"><span>50人以下</span></div>
                                        <div class="option <?if(isset($condition['team_size']) && $condition['team_size']==2){echo 'selected';}?>" data-value="2"><span>50-100人</span></div>
                                        <div class="option <?if(isset($condition['team_size']) && $condition['team_size']==3){echo 'selected';}?>" data-value="3"><span>101-500人</span></div>
                                        <div class="option <?if(isset($condition['team_size']) && $condition['team_size']==4){echo 'selected';}?>" data-value="4"><span>501-1000人</span></div>
                                        <div class="option <?if(isset($condition['team_size']) && $condition['team_size']==5){echo 'selected';}?>" data-value="5"><span>1000人以上</span></div>
                                    </div>
                                </label>
                            </div>
                        </div>
                        <div class="hh-input-label">
                            <div class="name">按企业性质</div>
                            <div class="form-control">
                                <label class="hh-select">
                                    <input class="hh-input small-size" name="property" type="text" value="<?if(isset($condition['property'])){echo $condition['property'];} else {echo 0;}?>" readonly unselectable="on">
                                    <div class="select-options">
                                        <div class="option <?if(isset($condition['property']) && $condition['property']==0){echo 'selected';}?>" data-value="0"><span>无</span></div>
                                        <div class="option<?if(isset($condition['property']) && $condition['property']==1){echo 'selected';}?>" data-value="1" ><span>国有企业</span></div>
                                        <div class="option <?if(isset($condition['property']) && $condition['property']==3){echo 'selected';}?>" data-value="3"><span>联营企业</span></div>
                                        <div class="option <?if(isset($condition['property']) && $condition['property']==4){echo 'selected';}?>" data-value="4"><span>私营</span></div>
                                        <div class="option <?if(isset($condition['property']) && $condition['property']==5){echo 'selected';}?>" data-value="5"><span>三资</span></div>
                                        <div class="option <?if(isset($condition['property']) && $condition['property']==6){echo 'selected';}?>" data-value="6"><span>其他企业</span></div>
                                    </div>
                                </label>
                            </div>
                        </div>
                        <div class="operate-btns">
                            <button id="reset-filter-btn" class="hh-btn hh-default-btn" type="button"><i class="iconfont"></i>重置</button>
                            <button class="hh-btn"><i class="iconfont"></i>查询</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>

        <div class="main-table-wrap" id="main-table-wrap">
            <form id="table-form" method="POST" action="">
                <div class="main-table-content" id="main-table-content">
                    <div class="main-table-thead" id="main-table-thead">
                        <table cellspacing="0" cellpadding="0" border="0">  
                            <colgroup>
                                <col class="col-3">
                                <col class="col-2">
                                <col class="col-15">
                                <col class="col-7">
                                <col class="col-4">
                                <col class="col-5"> 
                                <col class="col-10">
                            </colgroup>
                            <thead>
                                <tr>
                                    <th><label class="hh-checkbox"><input class="check-all" type="checkbox"></label></th>
                                    <th>ID</th>
                                    <th>企业名称</th>
                                    <th>账号</th>
                                    <th>状态</th>
                                    <th>创建人</th>
                                    <th>创建时间</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="main-table-tbody" id="main-table-tbody">
                        <table cellspacing="0" cellpadding="0" border="0">  
                            <colgroup>
                                <col class="col-3">
                                <col class="col-2">
                                <col class="col-15">
                                <col class="col-7">
                                <col class="col-4">
                                <col class="col-5"> 
                                <col class="col-10">
                            </colgroup>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                </tr>
                                <tr>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                    <td>1</td>
                                </tr>
                                <!-- <?foreach($enterprise as $key=>$value):?>
                                    <tr>
                                        <td><label class="hh-checkbox"><input class="check-one" name="id[]" value="<?=$value['prise_id']?>" type="checkbox"></label></td>
                                        <td><?=$value['prise_id']?></td>
                                        <td><a class="new_iframe" href="<?=base_url().'GardenAdmin/Enterprise/add_enterprise/'.$value['prise_id']?>"><?=$value['enterprise_name']?></a></td>
                                        <td><?=$value['admin']['username']?></td>
                                        <td><?=$value['admin']['status']==1?'已启用':'已停用'?></td>
                                        <td><?=$value['admin_name']?></td>
                                        <td><?=$value['create_time']?></td>
                                    </tr>
                                <?endforeach;?> -->
                            </tbody>
                        </table>
                    </div>
                </div>
            </form>
            <?php $this->load->view('Page/page'); ?>
        </div>

    </div>

</body>
<script src="../static/lib/jquery-1.12.4.min.js"></script>
<script src="../static/lib/common/util.js"></script> 
<script src="../static/lib/common/common.js"></script>
</html>
